<?php
 if ( ! defined('BASEPATH')) exit('No direct script access allowed');
Class User extends MY_Controller
{
    public function __construct()
    {
           
        parent::__construct(); 
        $this->data['controller'] = 'user';    
        $this->load->model('Muser');
    }
    
    public function login()
    {
        die(json_encode($this->Muser->loginUser()));
    }
    

}
